using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework.Net;

namespace Xyne.Network
{
    public enum EntityType 
    { 
        None = 0, 
        BattleRegion, 
        QueueRegion 
    };

    /// <summary>
    /// Any object whose state can be serialized and rebuilt.
    /// </summary>
    public abstract class StateEntity
    {
        private EntityType entityType = EntityType.None;

        public EntityType EntityType
        {
            get { return entityType; }
            set { entityType = value; }
        }

        public abstract void GetState(PacketWriter writer);
        public abstract void SetState(PacketReader reader);
    }
}
